﻿using System;
using System.IO;

namespace LoggerNamespace
{
    public class LoggerText: ILogger
    {
        private string log;

        public void AddMessage(string message)
        {
            log += message;
            log += "\n";
        }

        public string ShowLog()
        {
            return log;
        }
        public void SaveLog()
        {
            StreamWriter sw = new StreamWriter("log.txt");
            sw.Write(log);
            sw.Close();
        }
    }
}
